home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ham Radio 2000
/
Ham Radio 2000.iso
/
ham2000
/
logs
/
logbook
/
dxccman.prg
< prev
next >
Wrap
Text File
|
1990-05-04
|
3KB
|
116 lines
*:*********************************************************************
*:
*: Program: DXCCMAN.PRG
*:
*: System: PC-HAM Logbook
*: Author: Joe Kasser G3ZCZ
*: Copyright (c) 1990, Joe Kasser
*: Last modified: 04/27/90 13:27
*:
*: Called by: DXCC.PRG
*:
*: Uses: &LOGBOOK.DBF
*: : &DXCC
*:
*: Indexes: &LOGNDX
*:
*: Documented 05/04/90 at 13:50 SNAP! version 3.12f
*:*********************************************************************
* DXCCMAN MANUAL POINTER TO DXCC UPDATE 860429 COPYRIGHT (c) G3ZCZ 1986
IF FILE (logbook+'.DBF')
SELECT 1
USE &logbook INDEX &logndx
SELECT 2
USE &dxcc
STORE .t. TO cflag
STORE ' ' TO dxccn
STORE ' ' TO df
STORE ' ' TO callcard
DO WHILE cflag
CLEAR
@ 3,1 SAY ' '
ACCEPT 'Which DXCC prefix (* to terminate) ? ' TO dxccn
IF dxccn = '*'
STORE .F. TO cflag
ELSE
SELECT 2
* GO DIRECTLY TO RECORD
GOTO TOP
LOCATE FOR px = dxccn
IF (EOF())
@ 8,1 SAY ' '
? dxccn,' DOES NOT EXIST'
ELSE
IF dcall = ' '
? dxccn,' is not worked'
ELSE
DISP
ENDIF
@ 10,1 SAY 'Do you want to update the entry (Y/N) ?'
@ 10,40 GET df
READ
IF df = 'Y'
STORE ' ' TO callcard
SELECT 1
@ 12,1 SAY 'What is the call ? '
@ 12,21 GET callcard
READ
FIND &callcard
@ 14,1 SAY ' '
IF (EOF() .or. BOF())
? callcard,' is not in log'
ELSE
STORE .t. TO qflag
DO WHILE CALL = callcard .and. qflag
@ 20,1 SAY ' '
DISP
@ 22,2 SAY ' '
ACCEPT 'This one (Y/N) ?' TO df
IF df = 'Y'
STORE .F. TO qflag
ENDIF
SKIP
ENDDO
IF qflag
* DON'T update entry
ELSE
SKIP -1
STORE CALL TO CALL
STORE DATE TO DATE
STORE TIME TO TIME
STORE band TO band
STORE mode TO mode
STORE qslrx TO qslrx
SELECT 2
REPLACE dcall WITH CALL
REPLACE ddate WITH DATE
REPLACE dtime WITH TIME
REPLACE dband WITH band
REPLACE dmode WITH mode
IF qslrx = 'R'
REPLACE dstate WITH 'Q'
ELSE
IF qslrx = '-'
REPLACE dstate WITH 'W'
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDDO
ELSE
? 'ERROR,',logbook,' IS NOT ON DEFAULT DRIVE'
WAIT
ENDIF
SELECT 1
USE
SELECT 2
USE
RELEASE qflag,callcard,df,dxccn,cflag
*: EOF: DXCCMAN.PRG